import torch
import torch.nn as nn
import torch.nn.functional as F
torch.manual_seed(20200910)

#**~Linear.bias** – 形状(out_features)模块的可学习偏差。 如果bias为真，则初始化值（-√ k, √ k）,其中k=1/out_features
data_in = torch.randn(3,4,5,6,7)
print("data_in.shape",data_in.shape)
linear4cxq = nn.Linear(7, 30)
print(linear4cxq)
data_out = linear4cxq(data_in)
print("data_out.shape",data_out.shape)
torch.Size([3, 4, 5, 6, 30])
print("data_in.shape",data_in.shape)
